////TIME1312748798705
importPackage(com.blocks.blocks);
importPackage(com.blocks);
importPackage(com.blocks.model);
importPackage(com.jme3.math);
importPackage(java.lang);
var application = new Object();
application.setup = function() {
var masterBlock = new MasterBlock("MasterBlock", new Long(1));
masterBlock.init();
masterBlock.setLocalTranslation(new Vector3f(0.0, 2.0, 20.0));
ScriptBlocksApplication.getInstance().getRootNode().attachChild(masterBlock);
masterBlock.updatePower(false);
ScriptBlocksApplication.getInstance().addMasterBlock(masterBlock.getMasterId(), masterBlock);

var masterBlock2 = new MasterBlock("MasterBlock2", new Long(2));
masterBlock2.init();
masterBlock2.setLocalTranslation(new Vector3f(-2.0, 10.0, 20.0));
ScriptBlocksApplication.getInstance().getRootNode().attachChild(masterBlock2);
var Block201115427 = new Block("Block201115427", masterBlock2.getMasterId());
Block201115427.setBlockSides(BlockSides.SIDE_LEFT);
Block201115427.setCustomFrequency(true);
Block201115427.setScriptName("/blocks/CollisionTriggerLevelCompleteBlock.js");
Block201115427.init();
Block201115427.setLocalTranslation(new Vector3f(2.0, 0.0, 0.0));
masterBlock2.attachChild(Block201115427);
masterBlock2.updatePower(true);
ScriptBlocksApplication.getInstance().addMasterBlock(masterBlock2.getMasterId(), masterBlock2);

ScriptBlocksApplication.getInstance().getLevelProperties().setMoveBlockX(false);
ScriptBlocksApplication.getInstance().getLevelProperties().setMoveBlockY(false);
ScriptBlocksApplication.getInstance().getLevelProperties().setMoveBlockZ(false);
ScriptBlocksApplication.getInstance().getLevelProperties().setLevelDescription("Attach Blocks until you reach the End Level Block(Block with Happy Face) \n");
ScriptBlocksApplication.getInstance().getLevelProperties().setLevelFileName("level1.js");
ScriptBlocksApplication.getInstance().getLevelProperties().setNextLevelFileName("level2.js");
}
application.loop = function() {
}
